package com.mhc.haval.manager;

import com.subaru.common.query.PageResult;
import com.mhc.haval.dal.model.WorkflowDO;
import com.mhc.haval.dal.query.WorkflowQuery;

import java.util.List;


/**
 * Manager for Workflow.
 */
public interface WorkflowManager {
    /**
     * query count by query condition.
     */
    int countByQuery(WorkflowQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(WorkflowQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(WorkflowDO record);

    /**
     * insert selective.
     */
    long insertSelective(WorkflowDO record);

    /**
     * select by query condition.
     */
    List<WorkflowDO> selectByQuery(WorkflowQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<WorkflowDO> selectByQueryWithPage(WorkflowQuery query);

    /**
     * select by primary key.
     */
    WorkflowDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( WorkflowDO record,  WorkflowQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(WorkflowDO record, WorkflowQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(WorkflowDO record);
}